import { GENDER } from '@/enum/user';
import { ApiProperty } from '@nestjs/swagger';

export class UserDto {
  @ApiProperty({
    description: '用户的openid',
    example: 'dajsndjanxnm,doijiwjflasdk',
  })
  opendId: string;

  @ApiProperty({
    description: '用户昵称',
    example: '开玩笑',
  })
  nickName: string;

  @ApiProperty({
    description: '用户性别',
    example: '开玩笑',
  })
  gender: GENDER;

  @ApiProperty({
    description: '用户头像',
    example: '开玩笑',
  })
  avatarUrl: string;

  @ApiProperty({
    description: '用户所在国家',
    example: '中国',
  })
  country?: string;

  @ApiProperty({
    description: '用户所在省份',
    example: '福建省',
  })
  province?: string;

  @ApiProperty({
    description: '用户所在城市',
    example: '南平市',
  })
  city: string;

  @ApiProperty({
    description: '用户使用语言',
    example: '中文',
  })
  language: string;

  @ApiProperty({
    description: '用户使用语言',
    example: '中文',
  })
  verificationCode: string;

  @ApiProperty({
    description: '手机号',
    example: '中文',
  })
  phone: string;
}
